package com.yingoo.controller;

import com.yingoo.api.HanderRequest;
import com.yingoo.api.IHanderApi;

import java.util.List;
import java.util.concurrent.Callable;

/**
 * Created by lenovo on 2017/7/31.
 */
public class HanderThread implements Callable<List<String>> {
    private IHanderApi handerApi;
    private HanderRequest request;

    public HanderThread(IHanderApi handerApi, HanderRequest request) {
        this.handerApi = handerApi;
        this.request = request;
    }

    @Override
    public List<String> call() throws Exception {
        handerApi.handerRequest(request);
        return null;
    }
}
